// import React from "react";

// //1,引入App.css样式
// import './App.css'

// //2.引入Header文件
// import Header from './components/Header'
// //3.引入List文件
// import List from './components/List'

// export default function App() {

//     <div className="container">
//         <Header />
//         <List />
//     </div>
// }

import React from 'react'
import { Routes, Route } from "react-router-dom"

import Login from './components/Login'
import Main from './components/Main'

export default function App() {
  return (
    <div className='outer'>
      <Routes>
        <Route path="/login" element={<Login />} />
        <Route path="/main" element={<Main />} />
      </Routes>
    </div>
  )
}

//React路由的配置
// 1.下载react-router-dom的包
//2.引入BrowserRouter路由器包住整个App
// 3.在你想展示路由的地方书写路由